<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page" >
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="rowcount"/>
  <!--数据库总记录数-->
  <xsl:param name="maxrow"/>
  <!--每页记录数-->
  <xsl:param name="curpage"/>
  <!--当前页码-->
  <xsl:param name="param"/>
  <!--引入 param 参数-->
  <xsl:param name="templatename"/>
  <!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>
  <!--Label.xml orderby 参数-->
  <xsl:param name="where"/>
  <!--Label.xml where 参数-->
  <xsl:param name="runtime"/>
  <!--运行时长-->

  <xsl:template match="/">
    <xsl:choose>
      
      <!--评论列表-->
      <xsl:when test="$templatename='评论列表'">
        <xsl:if test="count(rows/row)!=0">
          <h3>网友评论</h3>
          <xsl:for-each select="rows/row">
          
            <div class="box">               
                <h4><span class="fr">发表于：<xsl:value-of select="concat(substring(F_UpdateTime,1,10),' ',substring(F_UpdateTime,12,5))"/></span><span class="fl">800FC<xsl:value-of select="F_IPName"/>网友&nbsp;<a href="" target="_blank"><xsl:value-of select="F_UserName"/></a></span></h4>
                <div class="content"> <xsl:value-of select="F_Content" disable-output-escaping="yes"/>&nbsp;</div>
                <div class="answer">  <a href="javascript:void(0)" onclick="doSupport('{ID}')">支持(<font class="red"><xsl:value-of select="F_OKCount"/></font>)</a>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="doReply('{ID}')">回复</a></div>
                <xsl:if test="F_Replay!=''">
                	<div class="replay"><xsl:value-of select="F_Reply"/></div>
                </xsl:if>
            </div>
            
          </xsl:for-each>
        </xsl:if>
        <div class="moreAnswer">本主题已有<b><xsl:value-of select="$rowcount"/></b>位网友发表了评论 <a class="f14B" href="/info/comment/{page:xRequest('ID')}.html" target="_blank">[查看全部]</a></div>
        <xsl:if test="count(rows/row)=0">
          &nbsp;
        </xsl:if>
      </xsl:when>
      <!--相关新闻-->
      <xsl:when test="$templatename='相关新闻'">
        <xsl:for-each select="rows/row">
          <li><span class="date fr"><xsl:value-of select="substring(F_AddTime,1,10)"/>&nbsp;</span><a href="/info/{F_TPath}" target="_blank"><xsl:value-of select="F_Title"/></a></li>
        </xsl:for-each>
      </xsl:when>
      <!--LoginStatus-->
      <xsl:when test="$templatename='LoginStatus'">
        <xsl:if test="not(page:xIsLogin())">
          <a class="loginA" href="javascript:void(0)" onclick="Element.toggle('login')">登录</a>(您未登录,发布评论需要审核才显示)
        </xsl:if>
        <xsl:if test="page:xIsLogin()">
          欢迎您&nbsp;
          <input type="hidden" value="{page:xLogin('userid')}" name="passportid"/>
          <xsl:value-of select="page:xLogin('f_username')"/> &nbsp;<a href="http://">用户中心</a>&nbsp; <a href="/logout.html">退出</a>
        </xsl:if>
      </xsl:when>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>